﻿@using MvcAtletIS.Helpers;
@model IEnumerable<MvcAtletIS.Models.Clubs>

@{
    ViewBag.Title = "Registrácia";
}

<h2>Registrácia - Prehľad</h2>

@using (Html.BeginForm())
{ 
    <div class="filter-frame">
        
        <div class="filter-item">
            <div class="editor-label">
                Vyberte skupinu klubov
            </div>
            <div class="editor-field">
                @Html.DropDownList("ClubsGroupsID", null, string.Empty, new { onchange = "this.form.submit();" })
            </div>
        </div>

    </div>
}

<p></p>

<table width="100%">
    
    <tr>
        <th width="100px">
            ID
        </th>
        <th width="220px">
            Názov
        </th>
        <th width="160px">
            Mesto
        </th>
        <th width="80px">
            Počet pretekárov
        </th>
        <th width="80px">
            Počet trénerov
        </th>
        <th width="80px">
            Počet rozhodcov
        </th>
        <th></th>
    </tr>

    @foreach (var club in Model)
    {
        <tr>
            <td align="center">
                @club.ID
            </td>
            <td>
                @club.Name
            </td>
            <td>
                @club.City
            </td>
            <td align="center">
                @club.CompetitorsCount
            </td>
            <td align="center">
                @club.CoachesCount
            </td>
            <td align="center">
                @club.RefereesCount
            </td>
            <td>
                @Html.ImageActionLink(Url.Content("~/Content/icons/p_icon.png"), "", "Competitors", new { id = club.ID }, new { title = "Pretekári", border = 0, hspace = 2 }) | 
                @Html.ImageActionLink(Url.Content("~/Content/icons/t_icon.png"), "", "Coaches", new { id = club.ID }, new { title = "Tréneri", border = 0, hspace = 2 }) | 
                @Html.ImageActionLink(Url.Content("~/Content/icons/r_icon.png"), "", "Referees", new { id = club.ID }, new { title = "Rozhodcovia", border = 0, hspace = 2 }) | 
                @Html.ImageActionLink(Url.Content("~/Content/icons/k_icon.png"), "", "Contacts", new { id = club.ID }, new { title = "Kontakty", border = 0, hspace = 2 })
            </td>
        </tr>    
        }
</table>


    
    
    

